<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<script src="../js/vue.js"></script>
<body>
    <div id="app">
        <h1>{{str}}</h1>
        <h1>{{num}}</h1>
        <h1>{{num + 10}}</h1>
        <h1>{{bol}}</h1>
        <h1>{{un}}</h1>
        <h1>{{nu}}</h1>
        <h1>{{obj.age}}</h1>
       
        <h1>{{arr[0]}}</h1>

        <h1>{{str.slice(0,2)}}</h1>

        <h1>{{Math.PI}}</h1>
        

        <h1>{{
            if(num > 100){
                alert(12345);
            }else{
                alert("safsdgfds");
            }
        
        }}</h1>

    </div>

    <script>
        new Vue({
            el:"#app",
            data:{
                str:"我是字符串",
                num:10,
                bol:false,
                un:undefined,
                nu:null,
                obj:{
                    uname:"张三",
                    age:18
                },
                arr:[1,2,3,4,5]
            }
        })



    </script>
</body>
</html>